import {defineStore} from "pinia";
const LayoutStore = defineStore('layout', {
    state: () => {
        return {
            isLayout1: false,
            showSearch: false,
            isLoading: true,
            isCategoryOrTag: false
        }
    },
    actions: {
        setIsCategoryOrTag(isCategoryOrTag: boolean) {
            this.isCategoryOrTag = isCategoryOrTag
        },
        setLoading(isLoading: boolean) {
            this.isLoading = isLoading
        },
        setLayout1(isLayout1: boolean) {
            this.isLayout1 = isLayout1
        },
        setShowSearch(showSearch: boolean) {
            this.showSearch = showSearch
        }
    },
})
export default LayoutStore
